﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.Common;
using Csla;
using Csla.Data;

namespace BO
{
     [FieldDescription("中心")]
    [Serializable()]
    public partial class Center:BusinessBaseEx
    {
        public Center()
        {
            this.Clear();
        }
         
        
    #region primary field
       
         private static PropertyInfo<Int32> IDProperty=RegisterProperty( typeof(Center), new PropertyInfo<Int32>("ID",true));
       
        
         public Int32 ID
        { 
            get{return GetProperty(IDProperty);}
            set{SetProperty(IDProperty, value); }
        }
       
         private static PropertyInfo<String> NameProperty=RegisterProperty( typeof(Center), new PropertyInfo<String>("Name",false));

         [FieldDescription("中心名称")]
         public String Name
        { 
            get{return GetProperty(NameProperty);}
            set{SetProperty(NameProperty, value); }
        }
       
         private static PropertyInfo<String> PrincipalProperty=RegisterProperty( typeof(Center), new PropertyInfo<String>("Principal",false));

         [FieldDescription("中心负责人")]
         public String Principal
        { 
            get{return GetProperty(PrincipalProperty);}
            set{SetProperty(PrincipalProperty, value); }
        }
       
         private static PropertyInfo<String> RemarkProperty=RegisterProperty( typeof(Center), new PropertyInfo<String>("Remark",false));

         [FieldDescription("中心备注")]
         public String Remark
        { 
            get{return GetProperty(RemarkProperty);}
            set{SetProperty(RemarkProperty, value); }
        }
       
         private static PropertyInfo<String> CompanyNameProperty=RegisterProperty( typeof(Center), new PropertyInfo<String>("CompanyName",false));
       
        
         public String CompanyName
        { 
            get{return GetProperty(CompanyNameProperty);}
            set{SetProperty(CompanyNameProperty, value); }
        }
       
         private static PropertyInfo<Boolean> IsInactiveProperty=RegisterProperty( typeof(Center), new PropertyInfo<Boolean>("IsInactive",false));
       
        
         public Boolean IsInactive
        { 
            get{return GetProperty(IsInactiveProperty);}
            set{SetProperty(IsInactiveProperty, value); }
        }
    #endregion 
       
        public override string GetTableName()
        {
            return "Center";
         }
        
    
    
    }
}